{% extends "base.html" %}

{% block title %} {{blog.title}}站内搜索 {% endblock %}

{% block content %}
<div id="searchForm" class="searchForm">
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load('search', '1');
  google.setOnLoadCallback(function() {
    google.search.CustomSearchControl.attachAutoCompletion(
      '014905753030476999361:9ssy2zlaeny',
      document.getElementById('q'),
      'cse-search-box');
  });
</script>
<form action="{{blog.baseurl}}/search" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="014905753030476999361:9ssy2zlaeny" />
    <input type="hidden" name="cof" value="FORID:10" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" id="q" autocomplete="off" size="31" />
    <input type="submit" name="sa" value="搜索" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=zh-Hans"></script>
		</div>


<div id="cse-search-results"></div>
<script type="text/javascript">
  var googleSearchIframeName = "cse-search-results";
  var googleSearchFormName = "cse-search-box";
  var googleSearchFrameWidth = 600;
  var googleSearchDomain = "www.google.com";
  var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>


{% endblock %}
